<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title>查看用户资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	<table width="98%" height="35" border="0" align="center"
  	style="margin-top: 6px;margin-bottom: 10px;">
  	<tr style="background-color: #9CDCF9;"><td class="STYLE1">
  		&nbsp;&nbsp;&nbsp;&nbsp;你现在的位置是： &nbsp;用户资料管理&nbsp; &gt;&gt; &nbsp;修改用户资料</td>
  	</tr>
  	</table>
  <table width="98%" border="0" align="center">
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > </td>
      <td width="75%">
        <font color="#FF0000"></font>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">登录账号：</div></td>
      <td width="75%"> ${employee.username}</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">用户姓名：</div></td>
      <td> ${employee.realname}</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">性别：</div></td>
      <td> <s:select name="sex" list="#{'MAN':'男士','WOMAN':'女士'}" listKey="key" listValue="value" disabled="true">
		</s:select></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">用户类别：</div></td>
      <td> <s:select name="usercate" list="#{'STUDENT':'考生','TEACHER':'教师'}" listKey="key" listValue="value" disabled="true">
      	</s:select></td>
    </tr> 
	<tr bgcolor="f5f5f5"> 
      <td> <div align="right">员工照片：</div></td>
      <td> <c:if test="${!empty employee.picture}"><img src="${employee.picture}" width="120" height="120" border="0"></c:if>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">身份证号码：</div></td>
      <td> ${employee.idcard.cardno } </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">身份证出生日期：</div></td>
      <td> ${employee.idcard.birthday} </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">身份证地址：</div></td>
      <td> ${employee.idcard.address}</td>
    </tr>  
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">手机号：</div></td>
      <td> ${employee.phone}</td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">电子邮件：</div></td>
      <td> ${employee.email}</td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">学历：</div></td>
      <td> ${employee.degree}</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">所属组织结构：</div></td>
      <td> <c:forEach items="${departments}" var="department">
		<input type="checkbox" name="departmentids" value="${department.id}" 
		<c:forEach items="${employee.departments}" var="userdepartment">
			<c:if test="${userdepartment==department}">checked</c:if>
		</c:forEach> disabled="disabled"/>${department.name}　
	 </c:forEach></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">设置权限角色：</div></td>
      <td> <c:forEach items="${privilegegroups}" var="privilegegroup">
		<input type="checkbox" name="privilegegroupids" value="${privilegegroup.id}" 
		<c:forEach items="${employee.privilegegroups}" var="userprivilegegroup">
			<c:if test="${userprivilegegroup==privilegegroup}">checked</c:if>
		</c:forEach> disabled="disabled"/>${privilegegroup.name}　
	 </c:forEach></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > </td> 
      <td width="75%">
      	  <br/>
          <input type="button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
      </td>
    </tr>
  </table>
<br>
</body>
</html>